package com.lnking.lnkingplace.service.impl;

import com.lnking.lnkingplace.model.entity.HistoryDateConfig;
import com.lnking.lnkingplace.mapper.HistoryDateConfigMapper;
import com.lnking.lnkingplace.model.request.historyDateConfig.HistoryDateConfigUpdateRequest;
import com.lnking.lnkingplace.service.IHistoryDateConfigService;
import com.lnking.starter.mybatis.entity.BaseEntity;
import com.lnking.starter.mybatis.service.impl.CustomServiceImpl;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zhangqt
 * @since 2022-10-09
 */
@Service
public class HistoryDateConfigServiceImpl extends CustomServiceImpl<HistoryDateConfigMapper, HistoryDateConfig> implements IHistoryDateConfigService {

    @Override
    public void update(HistoryDateConfigUpdateRequest params) {
        HistoryDateConfig info = new HistoryDateConfig();
        BeanUtils.copyProperties(params,info);
        this.baseMapper.updateById(info);
    }
}
